<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:geo="http://www.google.com/geo/schemas/sitemap/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:pagemap="http://www.google.com/schemas/sitemap-pagemap/1.0" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
  <url>
    <loc><%= @current_domain %></loc>
    <lastmod><%= RailsSitemap.updated_at %></lastmod>
    <changefreq><%= RailsSitemap.update_frequency_for_app %></changefreq>
    <priority>1.0</priority>
  </url>

  <% @sitemap_entries.each do |sitemap_entry| %>
    <url>
      <loc><%= @current_domain + sitemap_entry.path %></loc>
      <lastmod><%= sitemap_entry.updated_at%></lastmod>
      <changefreq><%=RailsSitemap.update_frequency_for_models%></changefreq>
      <priority><%= sitemap_entry.priority%></priority>
    </url>
  <% end %>
</urlset>
